package com.xy.demo.controller;


import com.xy.demo.model.Params;
import com.xy.demo.model.ResultInfo;
import com.xy.demo.service.BillService;
import com.xy.demo.service.FcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping("/fc")
@RestController
public class FcController {
        @Autowired
        private FcService fcService;

        @RequestMapping("/klb")
        private ResultInfo randomOne(@RequestBody Params params) throws Exception{
            ResultInfo list = fcService.randomOne(params);
            return list;
        }


    }
